package com.google.code.ptrends.Application.DAL.entities;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table (name = "APP.EVENT_TYPES")
public class EventTypeEntity implements Serializable{

	private static final long serialVersionUID = 1L;
	private int id;
	private String name;
	private String description;
	
	public void setId(int id) {
		this.id = id;
	}
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public int getId() {
		return id;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	@Column(name = "NAME", nullable = false, length = 50)
	public String getName() {
		return name;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
	@Column(name = "DESCRIPTION", nullable = false, length = 255)
	public String getDescription() {
		return description;
	}
	
	
	
}
